package com.sright.bcard.common.service.share.utils;

import java.util.Random;

/**
 * @author peter
 * @description 随机数工具类
 * @date 2020/5/13
 */
public class RadomUtils {

    public static String getSMSRadomCode() {
        Random random = new Random();
        int rannum = (int) (random.nextDouble() * (9999 - 1000 + 1)) + 1000;
        return String.valueOf(rannum);
    }
}
